package com.walle.concurrenttest.pattern.twoparsetermination;

/**
 * @author zhangjiapeng
 * @Package com.walle.concurrenttest.pattern.twoparsetermination
 * @Description: ${todo}
 * @date 2019/2/26 14:40
 */
public class Main {

    public static void main(String[] args) throws InterruptedException {
        System.out.println("Main Begin");

        CountUpThread countUpThread = new CountUpThread();
        countUpThread.start();

        Thread.sleep(5100);
        System.out.println("Main shutdown request");
        countUpThread.shutdown();

        System.out.println("Main Join");

        countUpThread.join();

        System.out.println("Main End");
    }
}
